package com.fengze.business.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.fengze.business.mapper.InquiryManifestMapper;
import com.fengze.business.domain.InquiryManifest;
import com.fengze.business.service.IInquiryManifestService;

/**
 * 询价清单Service业务层处理
 * 
 * @author lug
 * @date 2024-02-01
 */
@Service
public class InquiryManifestServiceImpl implements IInquiryManifestService 
{
    @Autowired
    private InquiryManifestMapper inquiryManifestMapper;

    /**
     * 查询询价清单
     * 
     * @param id 询价清单主键
     * @return 询价清单
     */
    @Override
    public InquiryManifest selectInquiryManifestById(Long id)
    {
        return inquiryManifestMapper.selectInquiryManifestById(id);
    }

    /**
     * 查询询价清单列表
     * 
     * @param inquiryManifest 询价清单
     * @return 询价清单
     */
    @Override
    public List<InquiryManifest> selectInquiryManifestList(InquiryManifest inquiryManifest)
    {
        return inquiryManifestMapper.selectInquiryManifestList(inquiryManifest);
    }

    /**
     * 新增询价清单
     * 
     * @param inquiryManifest 询价清单
     * @return 结果
     */
    @Override
    public int insertInquiryManifest(InquiryManifest inquiryManifest)
    {
        return inquiryManifestMapper.insertInquiryManifest(inquiryManifest);
    }

    /**
     * 修改询价清单
     * 
     * @param inquiryManifest 询价清单
     * @return 结果
     */
    @Override
    public int updateInquiryManifest(InquiryManifest inquiryManifest)
    {
        return inquiryManifestMapper.updateInquiryManifest(inquiryManifest);
    }

    /**
     * 批量删除询价清单
     * 
     * @param ids 需要删除的询价清单主键
     * @return 结果
     */
    @Override
    public int deleteInquiryManifestByIds(Long[] ids)
    {
        return inquiryManifestMapper.deleteInquiryManifestByIds(ids);
    }

    /**
     * 删除询价清单信息
     * 
     * @param id 询价清单主键
     * @return 结果
     */
    @Override
    public int deleteInquiryManifestById(Long id)
    {
        return inquiryManifestMapper.deleteInquiryManifestById(id);
    }
}
